package cn.ecut.service;

import cn.ecut.mapper.DormitoryMapper;
import cn.ecut.model.Dormitory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DormitoryService {
    @Autowired
    DormitoryMapper dormitoryMapper;

    public void apply(Dormitory dormitory) {
        dormitoryMapper.apply(dormitory);
    }
    public void updateStatus(String contract_num){
        dormitoryMapper.updataState(contract_num);
    }
}
